package cn.com.cfae.iras.doc.analyze.parse.model;

public class WordItem implements Comparable<WordItem> {

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public int getOffset() {
        return offset;
    }

    public void setOffset(int offset) {
        this.offset = offset;
    }

    private String value;
    private int offset;

    @Override
    public int compareTo(WordItem o) {
        return this.offset - o.offset;
    }
}
